//
//  ST_BTIMInviteMessageModel.swift
//  ST_BTIMInviteMessageModel
//
//  Created by Jason on 2021/8/25.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit
import SwiftyJSON

class ST_BTIMInviteMessageModel: ST_BTMessageAttachDecoder {
    
  
    var roomId:String = ""
    var nickname:String = ""
    var avatar:String = ""

   
    override func encode() -> String {
        
        let dict = ["msgType":313,"type":0,"roomId":roomId,"nickname":nickname,"avatar":avatar] as [String : Any]
        
        let json = JSON(dict)
        
        let res = json.rawString() ?? ""
        
        return res
    }
}
